package com.atde._03_creational_design_patterns.builder.improve;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._03_creational_design_patterns.builder.improve
 * @Author: Del
 * @CreateTime: 2025-06-18  18:36
 * @Description: 建造者模式 --- 抽象建造者
 * @Version: 1.0
 */
public abstract class BuildHouse {

    protected House house = new House();

    // 创建产品的流程，抽象方法
    public abstract void buildBasic();
    public abstract void buildWalls();
    public abstract void roofed();

    // 创建房子，将产品（房子）进行返回
    public House buildHouse() {
        return house;
    }
}
